import type { RequestConfig } from "@@/plugin-request/request"
import { AuthorizationInterceptor } from "./interceptors/authorization.interceptor";
import { CacheHandlerInterceptor } from "./interceptors/cache-handler.interceptor";
import { ErrorHandleInterceptor } from "./interceptors/error-handler.interceptor";
console.log(process.env.active);
export const request: RequestConfig = {
    skipErrprHandler:true,
    requestInterceptors: [
        AuthorizationInterceptor.requestInterceptor,
        CacheHandlerInterceptor.requestInterceptor
    ],
    responseInterceptors:[
        AuthorizationInterceptor.responseInterceptor,
        ErrorHandleInterceptor.responseInterceptor
    ]
}